function SuperClass() {
    this.name = 'test';
    this.books = ['js', 'html'];
}
function SubClass() {}
SubClass.prototype = new SuperClass();
let instance1 = new SubClass();
let instance2 = new SubClass();
instance1.name = 'hahaha';
console.log(instance2.name);